package com.le.tester.webpage.WXPay.service;

import com.le.tester.webpage.WXPay.dto.WxPayDto;
import com.le.tester.webpage.WXPay.entiry.WxPay;

import java.io.IOException;
import java.util.Map;

/**
 * 描述：支付接口
 */
public interface PayInfoService {
    //根据订单号获取支付信息
    WxPay getPayInfoByOrderNo(String ownOrderNo);

    //保存支付的信息
    void saveWxPayInfo(WxPay wxPay);

    //调用支付
    Map<String, Object> deployPay() throws Exception;

    //微信支付回调
    String wxPayNotify() throws Exception;

    //优化的微信支付回调
    Map<String, Object> deployWxPay(WxPayDto wxPayDto) throws Exception;

    String wxPayNotifyBetter(WxPayDto wxPayDto) throws Exception;
}
